package org.itboys.coo.entity.mongo.collection;

import org.itboys.mongodb.entity.BaseMongoEntity;
import org.mongodb.morphia.annotations.Entity;

/**
 * 作者：zzq
 * 时间：2017/12/1
 * 描述：迈迪龙_收藏
 */
@Entity(value="CooCollection", noClassnameStored=true)
public class CooCollection extends BaseMongoEntity{
    private Long memberId;//用户id
    private Integer type;//收藏的类型  1商品，2待定
    private Long otherId;//收藏的东西id

    public CooCollection() {
    }

    public CooCollection(Long memberId, Integer type, Long otherId) {
        this.memberId = memberId;
        this.type = type;
        this.otherId = otherId;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getOtherId() {
        return otherId;
    }

    public void setOtherId(Long otherId) {
        this.otherId = otherId;
    }
}
